<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">
	  主要论文专著目录（限20篇）
</div>


<p><strong>注意</strong>：</p>
<p>1．论文专著名称限100个字；</p>
<p>2．刊名限100个字；</p>
<p>3．作者限100个字；</p>
<p>4．通讯作者限100个字；</p>
<p>5．第一作者限100个字；</p>
<p>6．国内作者限100个字；</p>

<table  id="tabRepresentPaper" cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;table-layout:fixed;" >
			<col width="4%" />
			<col width="4%" />
			<col width="10%" />
			<col width="7%" />
			<col width="7%" />
			<col width="7%" />
			<col width="7%" />
			<col width="9%" />
			<col width="7%" />
			<col width="7%" />
			<col width="7%" />
			<col width="7%" />
			<col width="7%" />
			<col width="5%" />
			<col width="5%" />
			<thead >
				<tr style="border:1px solid #B7D1E6">
					<th class="TblHead" align="center" >选择</th>
					<th class="TblHead" align="center" >序号</th>
					<th class="TblHead" align="center" >论文专著名称</th>
					<th class="TblHead" align="center" >刊名</th>
					<th class="TblHead" align="center" >作者</th>
					<th class="TblHead" align="center" >影响因子</th>
					<th class="TblHead" align="center" >年卷页码（xx年xx卷xx页）</th> 
					<th class="TblHead" align="center" >发表时间</th>
					<th class="TblHead" align="center" >通讯作者</th>
					<th class="TblHead" align="center" >第一作者</th> 
					<th class="TblHead" align="center" >国内作者</th> 
					<th class="TblHead" align="center" >SCI他引次数</th> 
					<th class="TblHead" align="center" >他引总次数</th> 
					<th class="TblHead" align="center" >知识产权<br/>是否归国内所有</th> 
					<th class="TblHead" align="center" >相似论文专<br/>著名称情况</th>
				</tr>
			</thead>
			<tbody id="tab">
			<input type="hidden" id="nowDate" value="${sercverSysDate1}" label="当前日期"/>
					<tr style="display:none"  align="center">
						<td align="center">
							<input type="radio" class="radiobutton" name="selmainpsn"  >
						</td>
						<td align="center">
							<span name="paper|list[0]@seq_no" >[index]</span> 
						</td>
						<td align="center">
							<input type="text" id="represent[0]" name="paper|list[0]|paper_name" label="论文专著名称"  onchange="findSimilarity(this,'2');"  maxlength="100" style="width:80%" class="required input_text"/>
						</td>
						<td align="center">
							<input type="text" name="paper|list[0]|paper" label="刊名"  maxlength="100" style="width:80%" class="required input_text"/>
						</td>
						<td align="center">
							<input type="text" name="paper|list[0]|paper_author" label="作者"  maxlength="100" style="width:80%" class="required input_text"/>
						</td>
						<td align="center">		
							<input type="text" name="paper|list[0]|affect_factor" label="影响因子"  onfocus="InitInput.setNumber(this,7,2,2)"  maxlength="50" style="text-align: right; width:80%" class="  input_text"/>
						</td>
						<td align="center">						
							<input type="text" name="paper|list[0]|paper_no" label="年卷页码（xx年xx卷xx页）"  maxlength="50" style="width:80%" class="required input_text"/>
						</td>
						<td align="center">						
			          	<input id="publish_date_[0]" name="paper|list[0]|publish_date"  class=" required date  dateCompare:nowDate" label="发表时间"  style="width:60%"/>
						</td>
						<td align="center">
							<input type="text" name="paper|list[0]|contact_author" label="通讯作者"  maxlength="100" style="width:80%" class="required input_text"/>
						</td>
						<td align="center">
							<input type="text" name="paper|list[0]|first_author" label="第一作者"  maxlength="100" style="width:80%" class="required input_text"/>
						</td>
						
						<!-- <td align="center">
							<input type="text" name="paper|list[0]|domestic_author" label="国内作者"  onfocus="InitInput.setHanzi(this)" maxlength="100" style="width:80%" class="required input_text"/>
						</td> -->
						<td align="center">
							<input type="text" name="paper|list[0]|domestic_author" label="国内作者"  maxlength="100" style="width:80%" class="required input_text"/>
						</td>
						
						<td align="center">
							<input type="text" name="paper|list[0]|sci_no" onchange="countEight1();countEight2();" onfocus="InitInput.setNumber(this,7,0,0)" label="SCI他引次数"  maxlength="50" style="text-align: right; width:80%" class="required input_text"/>
						</td>
						<td align="center">
							<input type="text" name="paper|list[0]|total_no" onchange="countEight1();countEight2();" onfocus="InitInput.setNumber(this,7,0,0)" label="他引总次数"  maxlength="50" style="text-align: right; width:80%" class="required input_text"/>
						</td>
						<td align="center">
							<cpt:select id="yesorno[index]"  name="yesorno" key="yesorno"  onChange="initControlValue(this.id)"></cpt:select>
							<input type="hidden" name="paper|list[0]|yesorno_value" value="" label="知识产权是否归国内所有"  class="required"/>
							<input type="hidden" name="paper|list[0]|yesorno_name" value="" label="知识产权是否归国内所有"  />
						</td>
						<td align="center">
							<input type="hidden" name="paper|list[0]|similarity"   maxlength="20" label="相似知识产权情况"/>
							<a href="###" class="yase"  onclick="showSimilarityInfo(this,2);" id="similarity_paper_[0]"></a>
						</td> 
					</tr>
					 <c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/paper/list" var="list">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr   align="center">
						<td>
							<input type="radio" class="radiobutton" name="selmainpsn"  >
						</td>
						<td align="center">
							<span   name="paper/list[${flag}${index}]@seq_no" >${index+1}</span> 
						</td>
						<td align="center">
						   <input type="text" id="represent[${flag}${index}]" name="paper/list[${flag}${index}]/paper_name"   onchange="findSimilarity(this,'2');" label="论文专著名称"   style="width:80%" maxlength="100"  class="required input_text" value="<x:out select="$list/paper_name" />"/>
						</td>
						<td align="center">
						   <input type="text" name="paper/list[${flag}${index}]/paper"   label="刊名"   style="width:80%" maxlength="100"  class="required input_text" value="<x:out select="$list/paper" />"/>
						</td>
						<td align="center">
						   <input type="text" name="paper/list[${flag}${index}]/paper_author"   label="作者"   style="width:80%" maxlength="100"  class="required input_text" value="<x:out select="$list/paper_author" />"/>
						</td>
						<td align="center">
						   <input type="text" name="paper/list[${flag}${index}]/affect_factor"   label="影响因子" onfocus="InitInput.setNumber(this,7,2,2)"   style="text-align: right; width:80%" maxlength="50"  class="  input_text" value="<x:out select="$list/affect_factor" />"/>
						</td>
						<td align="center">
						   <input type="text" name="paper/list[${flag}${index}]/paper_no"   label="年卷页码（xx年xx卷xx页）"   style="width:80%" maxlength="50"  class="required input_text" value="<x:out select="$list/paper_no" />"/>
						</td>
						<td align="center">
						   <c:set var="publish_date" scope="page"><x:out select="$list/publish_date"/></c:set>
							<cpt:date id="publish_date" name="paper/list[${flag}${index}]/publish_date" value="${publish_date}" className=" required date  dateCompare:nowDate" label="发表时间"  size="8"></cpt:date>
						</td>
						<td align="center">
						   <input type="text" name="paper/list[${flag}${index}]/contact_author"   label="通讯作者"   style="width:80%" maxlength="100"  class="required input_text" value="<x:out select="$list/contact_author" />"/>
						</td>
						<td align="center">
						   <input type="text" name="paper/list[${flag}${index}]/first_author"   label="第一作者"   style="width:80%" maxlength="100"  class="required input_text" value="<x:out select="$list/first_author" />"/>
						</td>
						<%-- <td align="center">
						   <input type="text" name="paper/list[${flag}${index}]/domestic_author"   label="国内作者"   onfocus="InitInput.setHanzi(this)"  style="width:80%" maxlength="100"  class="required input_text"   value="<x:out select="$list/domestic_author" />"/>
						</td> --%>
						
						<td align="center">
						   <input type="text" name="paper/list[${flag}${index}]/domestic_author"   label="国内作者"   style="width:80%" maxlength="100"  class="required input_text" value="<x:out select="$list/domestic_author" />"/>
						</td>
						
						
						<td align="center">
						   <input type="text" name="paper/list[${flag}${index}]/sci_no" onchange="countEight1();countEight2();" onfocus="InitInput.setNumber(this,7,0,0)"  label="SCI他引次数"   style="text-align: right; width:80%" maxlength="50"  class="required input_text" value="<x:out select="$list/sci_no" />"/>
						</td>
						<td align="center">
						   <input type="text" name="paper/list[${flag}${index}]/total_no" onchange="countEight1();countEight2();" onfocus="InitInput.setNumber(this,7,0,0)"  label="他引总次数"   style="text-align: right; width:80%" maxlength="50"  class="required input_text" value="<x:out select="$list/total_no" />"/>
						</td>
						<td align="center">						
					    	<c:set var="yesorno"><x:out select="$list/yesorno_value" /></c:set>
							<cpt:select id="yesorno${index}" name="yesorno" value="${yesorno }" key="yesorno"  onChange="initControlValue(this.id)" ></cpt:select>
							<input type="hidden" name="paper/list[${flag}${index}]/yesorno_value" value="<x:out select="$list/yesorno_value" />" label="知识产权是否归国内所有"  class="required"/>
							<input type="hidden" name="paper/list[${flag}${index}]/yesorno_name" label="知识产权是否归国内所有" value="<x:out select="$list/yesorno_name" />" />
						</td>
						<td align="center">
							<input type="hidden" name="paper/list[${flag}${index}]/similarity"   maxlength="20" label="相似知识产权情况"/>
							<a href="###" class="yase" id="similarity_paper_${flag}${index}" onclick="showSimilarityInfo(this,2);"></a>
						</td>
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
				</tbody>
				<script type="text/javascript">
						showAllDateTag("tabRepresentPaper");
				</script> 
				</table>
				<table   cellpadding="0" class="table01 t_css" width="100%" border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;table-layout:fixed;">
				<col width="4%" />
			<col width="4%" />
			<col width="10%" />
			<col width="7%" />
			<col width="7%" />
			<col width="7%" />
			<col width="7%" />
			<col width="9%" />
			<col width="7%" />
			<col width="7%" />
			<col width="7%" />
			<col width="7%" />
			<col width="7%" />
			<col width="10%" />
			
			
			<!--   代表性论文专著合计 -->
			  <tr style="display: none">
					<td align="center" colspan="11">合  计</td>
					<td align="center">
					   <input type="text" name="paper/sci_eight" id="sci_eight" onfocus="InitInput.setNumber(this,7,0,0)"  label="SCI他引次数"  disabled  style="text-align: right; width:80%" maxlength="50"  class="gray input_text" value="<x:out select="$xmlData/data/paper/sci_eight" />"/>
					</td>
					<td align="center">
					   <input type="text" name="paper/others_eight" id="others_eight" onfocus="InitInput.setNumber(this,7,0,0)"  label="他引总次数"  disabled  style="text-align: right; width:80%" maxlength="50"  class="gray input_text" value="<x:out select="$xmlData/data/paper/others_eight" />"/>
					</td>
					<td></td>
				</tr>
				
				
				
				
				<!-- 主要论文专著合计 -->
			 <tr style="display: none">
					<td align="center" colspan="11">合  计</td>
					<td align="center">
					   <input type="text" name="paper/sci_total" id="sci_total" onfocus="InitInput.setNumber(this,7,0,0)"  label="SCI他引次数"  disabled  style="text-align: right; width:80%" maxlength="50"  class="gray input_text" value="<x:out select="$xmlData/data/paper/sci_total" />"/>
					</td>
					<td align="center">
					   <input type="text" name="paper/others_total" id="others_total" onfocus="InitInput.setNumber(this,7,0,0)"  label="他引总次数"  disabled  style="text-align: right; width:80%" maxlength="50"  class="gray input_text" value="<x:out select="$xmlData/data/paper/others_total" />"/>
					</td>
					<td></td>
				</tr>
				
				
			  
			  <script type="text/javascript">
			  function countEight1(){
				  
				  /* 前8   SCI他引次数 */
				  
				  var text1=0;
				  for(var i = 0;i<= 7;i++){
					 var text = $("input[name='paper/list[0"+i+"]/sci_no']").val();
					 if(text =="" || text == null){text =0;}else{text=parseInt(text);}
					 text1 = text + text1;
				  }
				  $("#sci_eight").val(text1);
				  
				  
				  /* 所有  SCI他引次数 */
				  var text2=0;
				  for(var i = 0;i<= 20;i++){
					  if(i<=9){
					 var text = $("input[name='paper/list[0"+i+"]/sci_no']").val();
					    }else{
					 var text = $("input[name='paper/list[0"+i+"]/sci_no']").val();
					    }
					 
					 
					 if(text =="" || text == null){text =0;}else{text=parseInt(text);}
					 text2 = text + text2;
				  }
				  $("#sci_total").val(text2);
				  
				  
				  
			  }
			  
			  
			  function countEight2(){
				  /* 前8   他引总次数 */
				  
				  var text3=0;
				  for(var i = 0;i<= 7;i++){
					 var text = $("input[name='paper/list[0"+i+"]/total_no']").val();
					 if(text =="" || text == null){text =0;}else{text=parseInt(text);}
					 text3 = text + text3;
				  }
				  $("#others_eight").val(text3);
				  
				  
				  
				  /* 所有  他引总次数 */

				  
				  var text4=0;
				  for(var i = 0;i<= 20;i++){
					  
					  if(i<=9){
						 var text = $("input[name='paper/list[0"+i+"]/total_no']").val();
						    }else{
						 var text = $("input[name='paper/list[0"+i+"]/total_no']").val();
						    }
					  
					  
				/* 	 var text = $("input[name='paper/list[0"+i+"]/total_no']").val(); */
					 if(text =="" || text == null){text =0;}else{text=parseInt(text);}
					 text4 = text + text4;
				  }
				  $("#others_total").val(text4);
				  
				  
				  
				  
				  
				  
				  
			  }

			  </script>
			  
			  
			  
			
				<tr style="display: none">
					<td align="center" colspan="11">合  计</td>
					<td align="center">
					   <input type="text" name="paper/sci1_total" id="sci1_total" onfocus="InitInput.setNumber(this,7,0,0)"  label="SCI他引次数"  disabled  style="text-align: right; width:80%" maxlength="50"  class="gray input_text" value="<x:out select="$xmlData/data/paper/sci1_total" />"/>
					</td>
					<td align="center">
					   <input type="text" name="paper/others1_total" id="others1_total" onfocus="InitInput.setNumber(this,7,0,0)"  label="他引总次数"  disabled  style="text-align: right; width:80%" maxlength="50"  class="gray input_text" value="<x:out select="$xmlData/data/paper/others1_total" />"/>
					</td>
					<td></td>
				</tr>
				
				 </table>
				  
					<table width="98%" align="center">
					<tr><td>
					<input class="button"  name="cmdAddbefore" type=button value="添加" onclick="if(checkTabLimit('tabRepresentPaper',20,'主要论文专著目录只能填写20篇')){addNewRow('tabRepresentPaper');showDateTag('tabRepresentPaper');}try{top.resizeFrame();}catch(e){};">
					<input class="button"  name="cmdMovePrev" type=button value="上移" onclick="movePrev('tabRepresentPaper','selmainpsn')">
					<input class="button"  name="cmdMoveNext" type=button value="下移" onclick="moveNext('tabRepresentPaper','selmainpsn')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tabRepresentPaper','主要论文专著目录');countTableInt('tabRepresentPaper','sci1_total','11');countTableInt('tabRepresentPaper','others1_total','12');countEight1();countEight2();">
					</td></tr>
	</table>




<div class="t_bar">补充说明（限200字）</div>
<table class="t_css" width="100%" border="0" cellpadding="0" id="introduction_add" cellspacing="1" style="table-layout:fixed;">
	<col width="20%;"/>
	<col width="25%;"/>
	<col width="20%;"/>
	<col width="20%;"/>
	<col width="25%;"/>
	<tr class="li_2">
		<td  colspan="5" >
			<textarea rows="5" style="width: 888px;" name='proposal/add_introduction' class="input_textarea maxlength:200"   label="补充说明"><x:out select="$xmlData/data/proposal/add_introduction"/></textarea>
	      <input type='hidden' name='proposal/add_introduction_hidden' id='add_introduction_hidden' value=''>
		</td>
	</tr>
</table>











	<script type="text/javascript">
	/**
	* 选择树设置隐藏域值 public.js中原函数不适用，针对treeId中包含下标的情况
	*/
	function initTreeValueExt(treeId, treeNode) {

		var inputId = treeId.substring(0, treeId.lastIndexOf('_'));
		if (!(treeNode && (treeNode.level > 0 || !treeNode.isParent))) {
			scmWarn($("#" + treeId).attr("label")
					+ messageTip.researchAreaInvalidDisciplineCode);
			if (treeNode.level == 0) {
				$("#" + treeId).val("");
				$("#" + treeId).parents("td").find("[name$='" + inputId + "_code'],[id$='" + inputId+ "_code']").val("");
				$("#" + treeId).parents("td").find("[name$='" + inputId + "_value'],[id$='" + inputId+ "_value']").val("");
				$("#" + treeId).parents("td").find("[name$='" + inputId + "_name'],[id$='" + inputId+ "_name']").val("");
			}
			return false;
			}
			var str = treeNode.name;
			var obj = treeNode.parentNode;
			while (obj != null) {
				//str = obj.name + "-" + str;
				obj = obj.parentNode;
			}
			$("#" + treeId).parents("td").find("[name$='" + inputId + "_code'],[id$='" + inputId+ "_code']").val(treeNode.id);
			$("#" + treeId).parents("td").find("[name$='" + inputId + "_value'],[id$='" + inputId+ "_value']").val(treeNode.id);
			$("#" + treeId).parents("td").find("[name$='" + inputId + "_name'],[id$='" + inputId+ "_name']").val(str);
		}
	
	
	$(function(){
		countTableInt('tabRepresentPaper','sci1_total','11');
		countTableInt('tabRepresentPaper','others1_total','12');
		
		countTableInt('tabPaper','sci2_total','7');
		countTableInt('tabPaper','others2_total','8');
		$("#tabRepresentPaper").find("tr:gt(1)").each(function(){
    		var paper_name=$(this).find("input[name$='paper_name']").val();
    		var obj=$(this).find("input[name$='similarity']");
    		var obj1=$(this).find("a");
    		if(paper_name!=""){
    			$.ajax({
        		    url: "${ctx}/proposal/findSimilarityNum",
        		    data:{
        		    	'sourceName':paper_name,
        		    	'type':'2',
        		    	'posCode':'${posCode}'
        		    },
        		    type: "POST",
        		    dataType: 'text',
        		    timeout: 10000,
        		    async:false,
        		    error: function(){
        		        alert("查询相似知识产权情况失败");
        		    },
        		    success: function(data){
        		    	obj.val(data);
        		    	obj1.text(data);
        		    }
        		});
    		}
    	});
	});
	
	</script>
	